home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / env_20.zip / ENVIRON.DOC < prev    next >
Text File  |  1992-07-30  |  24KB  |  591 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.   █████████   ███   ███   ███   ███   ███   ████████     ███████    ███   ███
  16.   ███▒▒▒▒▒▒▒  ████  ███▒  ███▒  ███▒  ███▒  ███▒▒▒███   ███▒▒▒███   ████  ███▒
  17.   ███▒        █████ ███▒  ███▒  ███▒  ███▒  ███▒  ███▒  ███▒  ███▒  █████ ███▒
  18.   ████████    ███▒█▒███▒  ███▒  ███▒  ███▒  ████████▒▒  ███▒  ███▒  ███▒█▒███▒
  19.   ███▒▒▒▒▒▒   ███▒█████▒   ███ ███▒▒  ███▒  ███▒███▒▒   ███▒  ███▒  ███▒█████▒
  20.   ███▒        ███▒ ████▒   ███▒███▒   ███▒  ███▒ ███    ███▒  ███▒  ███▒ ████▒
  21.   █████████   ███▒  ███▒    ▒███▒▒▒   ███▒  ███▒  ███    ███████▒▒  ███▒  ███▒
  22.    ▒▒▒▒▒▒▒▒▒   ▒▒▒   ▒▒▒      ▒▒▒      ▒▒▒   ▒▒▒   ▒▒▒    ▒▒▒▒▒▒▒    ▒▒▒   ▒▒▒
  23.  
  24.                                   Version 2.0
  25.                                  July 30, 1992
  26.  
  27.  
  28.  
  29.                          Copyright 1992 by David E. Key
  30.                                 Arlington, Texas
  31.  
  32.                              CompuServe 76264,1532
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.                                TABLE OF CONTENTS
  61.      _____________________________________________________________________
  62.  
  63.  
  64. INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  3
  65.  
  66. OVERVIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  3
  67.  
  68. CHAPTER 1 - SYSTEM REQUIREMENTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  4
  69.       HARDWARE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  4
  70.       A NOTE ON VIDEO. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  4
  71.  
  72. CHAPTER 2 - EXECUTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  5
  73.       USER SELECTED. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  5
  74.             Delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  5
  75.             Delete with Configuration File . . . . . . . . . . . . . . . . . . . . . . . . .  6
  76.             User Specified Delete. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  6
  77.             Restore. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  7
  78.       AUTOMATIC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  7
  79.             Delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  7
  80.             Delete with Configuration File . . . . . . . . . . . . . . . . . . . . . . . . .  8
  81.             User Specified Delete. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  82.             Restore. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  83.  
  84. CHAPTER 3 - COMMAND LINE PARAMETERS. . . . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  85.       DESCRIPTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  86.       AVAILABLE COMBINATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  87.  
  88. CHAPTER 4 - RELATED FILES. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  89.       SAVED ENVIRONMENT FILE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  90.       CONFIGURATION FILE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  91.  
  92. CHAPTER 5 - LIMITATIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.                                       - 2 -
  119.                                   INTRODUCTION
  120.      _____________________________________________________________________
  121.  
  122.  
  123. ENVIRON was written to solve the problem of network administrators adding an
  124. onerous number of environment variables to user's PC's with their own harddisk
  125. and battery of applications.  In our shop, the menu system we use adds about 10
  126. variables that take up approximately 200 bytes.  In addition to managing the
  127. woes created by your friendly network administrator, ENVIRON can also be used
  128. to manage different scenarios where applications need there own subset of
  129. environment variables either to run or to run more efficiently.  The program is
  130. designed for use in batch files once the user becomes comfortable with the
  131. workings by using the "user selected" mode.  Using a little creativity, you
  132. should find it quite easy to accomplish just about anything that has to do with
  133. these little critters.
  134.  
  135. If you find ENVIRON useful, a gift of any amount would be appreciated.  There
  136. is no warranty of any kind.  The copyright owner does not warrant that the
  137. software will meet your requirements or that it is error free, nor may the
  138. copyright owner be help responsible for any loss of profits or data.  Whether
  139. you like the software or not, I would appreciate any comments related to
  140. problems you're having or suggestions for improvement.  Please address all
  141. correspondence to:
  142.  
  143.                            David E. Key
  144.                            5901 Kesler Drive
  145.                            Arlington, TX  76017-1066
  146.  
  147.  
  148.  
  149.                                     OVERVIEW
  150.      _____________________________________________________________________
  151.  
  152.  
  153. ENVIRON is a utility that can be used to delete selected variables from the DOS
  154. master environment, storing those selected to a file before it does so.  It can
  155. also be used to restore these saved variables, or a selected subset thereof to
  156. the master environment.  There are two modes of operation; "user selected" and
  157. "automatic".
  158.  
  159. "User selected" presents a screen showing the variables, and offering the user
  160. the opportunity to mark them for deletion or restoration.  There are several
  161. options within this mode that can be specified via command line parameters. 
  162. Discussion of these is deferred to the following chapters.
  163.  
  164. "Automatic" simply runs the program "silently" (i.e. no screens are presented
  165. or messages are printed as long as execution completes successfully).  If
  166. execution is completed successfully a value of 0 is returned to DOS upon
  167. termination.  Otherwise a value of 1 is returned.  This mode also provides for
  168. several command line parameters.
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.                                       - 3 -
  178.                          CHAPTER 1 - SYSTEM REQUIREMENTS
  179.      _____________________________________________________________________
  180.  
  181.  
  182. HARDWARE
  183. --------------------------------------------------------------------------
  184. The ENVIRON.EXE program requires about 91K of memory.  It was developed and
  185. tested exclusively under MS-DOS 5.00.  How it will behave under another operat-
  186. ing system, I have no idea.  However, because of the method used to "grab" the
  187. master environment, I feel fairly comfortable that it should not be a problem. 
  188. The code is written in C++ and should run on anything greater than or equal to
  189. an 80x86.  There are no floating point routines, so performance with a coproc-
  190. essor is moot.  Disk size is certainly no issue.  The only additional file
  191. space required by the program is exactly equal to the size in bytes of the
  192. variables removed from the environment.
  193.  
  194. A NOTE ON VIDEO
  195. --------------------------------------------------------------------------
  196. ENVIRON writes directly to video memory in "user selected" mode and uses the
  197. following steps to determine what that address should be.  First, the mode is
  198. tested and if it is not equal to 7 the address is set to B800h.  If the mode is
  199. 7, the address used is B000h.  If the mode is equal to 3, color is added,
  200. otherwise text is presented in black and white.  If you experience video
  201. problems it can probably be traced to the above.  "Automatic" mode uses no
  202. video except upon error such as being unable to find the saved environment
  203. file, or being unable to change directories.
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.                                       - 4 -
  237.                              CHAPTER 2 - EXECUTION
  238.      _____________________________________________________________________
  239.  
  240. USER SELECTED
  241. --------------------------------------------------------------------------
  242.       Delete
  243.       ------
  244.       In "user selected" delete mode a screen similar to the following example
  245.       is presented:
  246.  
  247. ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ DELETE MODE ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  248. ╔═════════════════════════════════════════════════════════════════════════════╗
  249. ║                                 ENVIRON.EXE                                 ║
  250. ║                       Environment Manipulation Utility                      ║
  251. ║                                 Version 2.0                                 ║
  252. ╚═════════════════════════════════════════════════════════════════════════════╝
  253.  
  254. √  PROMPT=$P$G
  255. √  TIGA=-MC:\TIGA -LC:\TIGA
  256. √  CLIPPER=F65,R26,V022,E0,X64
  257. √  RIMID=C6
  258. √  COMSPEC=C:\COMMAND.COM
  259. √  PATH=C:\;C:\DOS5;C:\PCTOOLS;C:\UTIL;C:\XTGOLD;C:\BORLANDC\BIN;C:\NORTON; ...
  260. √  S_1=Home
  261. √  S_2=of
  262. √  S_3=the
  263. √  S_4=free
  264. √  S_5=and
  265.  
  266.            ┌──────────────────────────────────────────────────────┐
  267.            │ Use arrow keys () to highlight item  █  F7 to mark │
  268.            │ / unmark  █  F2 to write selected  variables to file │
  269.            │ and remove from environment █ F10 to abort operation │
  270.            └──────────────────────────────────────────────────────┘
  271. ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ PGDN / PGUP for more ... ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
  272.  
  273.       The top line of the screen provides information on the mode of operation. 
  274.       In this case, "DELETE MODE".  The available keys are listed in the out-
  275.       lined box near the bottom of the screen.  Not shown here, but obvious in
  276.       the program, the currently selected item is highlighted in BLACK on
  277.       LIGHTGRAY.  The arrow keys can be used to move up and down the list of
  278.       selections.  Those items that are marked with a "√" character are "select-
  279.       ed".  Selection can be toggled on and off by pressing the F7 key.  In this
  280.       mode all items are selected by default when the program is started.  If
  281.       there are more than 11 variables in the environment, a message is dis-
  282.       played on the bottom of the screen stating that PGDN or PGUP can be
  283.       pressed to view the next (or previous) screen of variables.  If any one
  284.       variable is greater than 74 characters in length, it is displayed with 3
  285.       trailing dots (...).  Not to worry, this is merely for cosmetics, the true
  286.       value is still "in there."  However, you would probably think that a good
  287.       program would let you use the right and left arrow keys to view the rest
  288.       of it.  Unfortunately, this isn't one of those kind of "good ones."  Once
  289.       all selections have been made, F2 can be pressed to write out the selected
  290.       variables to the "save" file and to remove them from the environment.  Of
  291.       course, there is an abort key ... pressing F10 at any time discards all
  292.       changes and returns you to DOS.  No changes are made in this instance.
  293.  
  294.  
  295.                                       - 5 -
  296.       Delete with Configuration File
  297.       ------------------------------
  298.       In "user selected" delete with configuration file mode the screen appears
  299.       exactly the same as that for "user selected" delete mode except that the
  300.       items specified in the configuration file are rendered unselectable. 
  301.       Their status is noted on color displays in DARKGRAY on BLUE.  On non-color
  302.       monitors their colors are LIGHTGRAY on BLACK.  It is impossible to over-
  303.       ride their status because the arrow keys cannot be used to highlight them. 
  304.       The top line of screen indicates "RESTRICTED DELETE MODE".
  305.  
  306.       User Specified Delete
  307.       ---------------------
  308.       This mode should not be confused with "user selected" delete mode.  In
  309.       this mode, wildcard parameters are given that specify which variables
  310.       should be marked for deletion by default as opposed to which variables
  311.       should NOT be deleted, or selecting them all.  Once again, the screen
  312.       appears exactly the same as that for "user selected" delete mode except
  313.       that the items matching the wildcard parameters are marked for deletion
  314.       with those not matching not being marked.  All items are available for
  315.       marking/unmarking in this mode.  The top line of screen indicates "DELETE
  316.       MODE".
  317.  
  318.       The wildcard parameters follow the same form as those used by MS-DOS when
  319.       specifying file names to be acted upon by the operating system.  The
  320.       exception to this is that the "?" character is not supported.  If this
  321.       character is used, ENVIRON will search for it explicitly in the list of
  322.       environment variables.  The "*" is supported in one instance only per
  323.       wildcard parameter and may occur anywhere in the string.  Each wildcard
  324.       parameter MUST be separated by one space and should follow a SINGLE "/S:"
  325.       parameter.  A space after the initial "/S:" specifier is optional.  Some
  326.       examples:
  327.  
  328.       The parameter "AS*" would find:
  329.  
  330.                   ASCII
  331.                   ASKME
  332.                   ASTER
  333.  
  334.             it would NOT find:
  335.  
  336.                   FAST
  337.                   RASTER
  338.  
  339.       The parameter "*ED" would find:
  340.  
  341.                   ACTED
  342.                   SUPPORTED
  343.                   SEPARATED
  344.  
  345.             it would NOT find:
  346.  
  347.                   MEDELY
  348.                   BEDS
  349.  
  350.       The parameter "FILE*BIG" would find:
  351.  
  352.                   FILE01BIG
  353.                   FILE02BIG
  354.                                       - 6 -
  355.             it would not find:
  356.  
  357.                   FIL001BIG
  358.                   FIL002BIG
  359.  
  360.       Restore
  361.       -------
  362.       In "user selected" delete mode a screen similar to the following example
  363.       is presented:
  364.  
  365. ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ RESTORE MODE ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  366. ╔═════════════════════════════════════════════════════════════════════════════╗
  367. ║                                 ENVIRON.EXE                                 ║
  368. ║                       Environment Manipulation Utility                      ║
  369. ║                                 Version 2.0                                 ║
  370. ╚═════════════════════════════════════════════════════════════════════════════╝
  371.  
  372. √  NU=C:\NORTON
  373. √  S_FILEDIR=Z:\STATION\C6\
  374. √  S_FILE=49
  375. √  S_LOGIN=DAVID
  376. √  S_DRIVE=F:
  377. √  OS=MSDOS
  378. √  VER=V5.00
  379. √  S_DOS=V5.00
  380. √  S_MENU=RISKMAIN
  381. √  S_PROJECT=RISK_MANAGEMENT
  382. √  PRT_GROUP=RISK_PRT
  383.  
  384.            ┌──────────────────────────────────────────────────────┐
  385.            │  Use arrow keys () to  highlight item   █   F7 to  │
  386.            │  mark / unmark  █  F2 to insert  selected variables  │
  387.            │  into  environment   █   F10  to  abort   operation  │
  388.            └──────────────────────────────────────────────────────┘
  389. ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ PGDN / PGUP for more ... ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
  390.  
  391.       The screen appears exactly the same as that for "user selected" delete
  392.       mode except that the F2 key restores the saved environment variables to
  393.       the master environment.  All other keys perform the same function as that
  394.       described above.  It should be noted that if all variables from the file
  395.       are not restored, those excluded are lost forever.  An ASCII file of the
  396.       same name and format could be created in the root directory to restore
  397.       these variables later if so desired.
  398.  
  399. AUTOMATIC
  400. --------------------------------------------------------------------------
  401.       Delete
  402.       ------
  403.       "Automatic" delete mode performs the same function as "user selected"
  404.       delete mode except that no operator intervention is required.  Unless some
  405.       sort of unusual error occurs such as being unable to change to the root
  406.       directory, operation proceeds "silently" and a value of 0 is returned to
  407.       DOS upon completion.  If an error occurs a value of 1 is returned to DOS. 
  408.       As with "user selected" delete, the default is to delete all variables
  409.       from the environment.  This is probably not the desired effect so "auto-
  410.       matic" delete with configuration file mode is provided to retain those
  411.       variables contained in the configuration file.
  412.  
  413.                                       - 7 -
  414.       Delete with Configuration File
  415.       ------------------------------
  416.       "Automatic" delete with configuration file mode operates the same as its
  417.       "user selected" cousin except that no operator intervention is required. 
  418.       Unless some sort of unusual error occurs such as being unable to change to
  419.       the root directory, operation proceeds "silently" and a value of 0 is
  420.       returned to DOS upon completion.  If an error occurs a value of 1 is
  421.       returned to DOS.  As with the "user selected" mode, the default is to
  422.       delete all variables from the environment except those contained in the
  423.       configuration file.
  424.  
  425.       User Specified Delete
  426.       ---------------------
  427.       "Automatic" user specified delete mode operates the same as its "user
  428.       selected" cousin except that no operator intervention is required.  Unless
  429.       some sort of unusual error occurs such as being unable to change to the
  430.       root directory, operation proceeds "silently" and a value of 0 is returned
  431.       to DOS upon completion.  If an error occurs a value of 1 is returned to
  432.       DOS.  As with the "user selected" mode, the default is to delete all
  433.       variables from the environment that match the wildcard parameters speci-
  434.       fied on the command line.
  435.  
  436.       Restore
  437.       -------
  438.       "Automatic" restore mode performs the same function as "user selected"
  439.       restore mode except that no operator intervention is required.  Unless
  440.       some sort of unusual error occurs such as being unable to change to the
  441.       root directory or being unable to find the saved environment file, opera-
  442.       tion proceeds "silently" and a value of 0 is returned to DOS upon comple-
  443.       tion.  If an error occurs a value of 1 is returned to DOS.  As with "user
  444.       selected" restore, the default is to restore all variables to the environ-
  445.       ment.  If this is not the desired effect, the saved environment file could
  446.       be edited to include only those needed.
  447.  
  448.  
  449.  
  450.                       CHAPTER 3 - COMMAND LINE PARAMETERS
  451.      _____________________________________________________________________
  452.  
  453. DESCRIPTION
  454. --------------------------------------------------------------------------
  455. Usage:    C:\>ENVIRON "userparameter(s)"
  456.  
  457. Available Parameters:
  458.  
  459.       /H  -       Display online help screens.
  460.       /D  -       Delete variables from environment.
  461.       /C  -       Use configuration file to specify those variables that should be
  462.                   excluded from deletion.
  463.       /S: -       Delete all variables that match a specified pattern using the
  464.                   familiar DOS "*" wildcard character.  Multiple patterns can be
  465.                   specified by separating them with one space.
  466.       /R  -       Restore saved variables to the environment.
  467.       /A  -       Automatic mode, no user intervention required.
  468.  
  469. AVAILABLE COMBINATIONS
  470. --------------------------------------------------------------------------
  471.       /H                  -         Display online HELP screens.
  472.                                       - 8 -
  473.       /D                  -         User selected DELETE mode, default is delete all.
  474.       /D /C               -         User selected DELETE mode, default excludes those
  475.                                     contained in the configuration file.
  476.       /D /A               -         Automatic DELETE mode, default is delete all.
  477.       /D /C /A            -         Automatic DELETE mode, default excludes those
  478.                                     contained in the configuration file.
  479.       /S:<wildcard(s)>    -         User specified DELETE mode.  Deletes only those
  480.                                     variables matching the pattern(s) specified as
  481.                                     wildcard(s).
  482.       /S:<wildcard(s)> /A -         Automatic DELETE mode.  Deletes only those vari-
  483.                                     ables matching the pattern(s) specified as wild-
  484.                                     card(s).
  485.       /R                  -         User selected RESTORE mode, default is restore
  486.                                     all variables contained in the saved environment
  487.                                     file.
  488.       /R /A               -         Automatic RESTORE mode.  Restores all variables
  489.                                     contained in the saved environment file.
  490.  
  491.       The sequence of these parameters on the command line is insignificant. 
  492.       However, for the "/S:" parameter all wildcard patterns must follow the
  493.       first and only "/S:" specified.  Except in the case of the "/S:" parameter
  494.       anything following any of the other parameters without a space is ignored. 
  495.       For example if the user accidentally typed "ENVIRON /D/A", ENVIRON would
  496.       be run in "user selected" delete mode, NOT "automatic" delete mode.
  497.  
  498.  
  499.  
  500.                            CHAPTER 4 - RELATED FILES
  501.      _____________________________________________________________________
  502.  
  503. SAVED ENVIRONMENT FILE
  504. --------------------------------------------------------------------------
  505.       Upon executing ENVIRON in any of the delete modes a file entitled
  506.       SAVEDENV.TXT is written to the root directory of the disk on which
  507.       ENVIRON.EXE resides.  This is a flat, ASCII file that writes each variable
  508.       and its associated value (separated by an "=" sign) to its own line in the
  509.       file.  This file can be edited with a text editor, deleting or adding
  510.       lines as desired.  Just be sure to follow the same format as that found in
  511.       the file created by ENVIRON itself.  If the resulting file would contain
  512.       no variables after being created by ENVIRON, it is automatically deleted
  513.       prior to exiting.
  514.  
  515. CONFIGURATION FILE
  516. --------------------------------------------------------------------------
  517.       A copy of an example configuration file should be included with this
  518.       distribution and is entitled ENVIRON.CFG.  It must reside in the same
  519.       directory as ENVIRON.EXE.  Basically, variables to exclude are listed on
  520.       individual lines WITHOUT the associated "=" sign or the variable's pur-
  521.       ported contents.  Comments can be added by placing a semicolon anywhere on
  522.       the line.
  523.  
  524.  
  525.  
  526.                             CHAPTER 5 - LIMITATIONS
  527.      _____________________________________________________________________
  528.  
  529. There are several limitations in the program worth mentioning.  First, the
  530. number of environment variables that the program can handle is limited to 64. 
  531.                                       - 9 -
  532. In User Selected Delete Mode, the maximum number of wildcard combinations
  533. following the "/S:" parameter is 15.  And finally, environment variables
  534. greater than 128 characters in length are not supported.
  535.  
  536. One "quirk" I have found, and still don't know the reason for, relates to
  537. deleting the "COMSPEC" variable from the environment.  The variable is not
  538. visible after using the DOS "SET" command, and restores without problem.  But,
  539. shortly after that some or all of the environment variables disappear when
  540. other applications are used.  For this reason I would strongly suggest that you
  541. NOT delete the "COMSPEC" variable.
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.                                      - 10 -
  591.